import axiosIns from '@/utils/request';
// 模拟接口 https://hxjsq.morninfo.com/appgl/doc.html#/

export const securityApi = {
  asideList: (data) => {
    // return axiosIns.post('/bbibmApiDataservice/page', data, {
    //   params: { pageIndex: 1 }
    // });
    return new Promise((resolve) => {
      setTimeout(() => {
        resolve({
          code: '00',
          data: {
            total: 1025,
            records: [
              {
                id: '1',
                bh: '1',
                zt: 1,
                mc: '警力设备',
                ms: '警力设备描述警力设备描述警力设备描述警力设备描述警力设备描述',
                cjsj: '2021-01-01 00:00:00'
              },
              {
                id: '2',
                bh: '2',
                zt: 0,
                mc: '感知设备',
                ms: '感知设备描述',
                cjsj: '2021-01-01 00:00:00'
              },
              {
                id: '3',
                bh: '3',
                zt: 0,
                mc: '周边搜索',
                ms: '周边搜索描述周边搜索描述周边搜索描述',
                cjsj: '2021-01-01 00:00:00'
              },
              {
                id: '4',
                bh: '4',
                zt: 1,
                mc: '警力设备',
                ms: '警力设备描述警力设备描述警力设备描述警力设备描述警力设备描述',
                cjsj: '2021-01-01 00:00:00'
              },
              {
                id: '5',
                bh: '5',
                zt: 1,
                mc: '警力设备',
                ms: '警力设备描述警力设备描述警力设备描述警力设备描述警力设备描述',
                cjsj: '2021-01-01 00:00:00'
              }
            ]
          }
        })
      }, 500)
    })
  },
  tableList: (data) => {
    // return axiosIns.post('/bbibmApiDataservice/page', data, {
    //   params: { pageIndex: 1 }
    // });
    return new Promise((resolve) => {
      setTimeout(() => {
        resolve({
          code: '00',
          data: {
            total: 1025,
            records: [
              {
                bh: '001001',
                zt: 1,
                mc: '执法记录仪',
                cjsj: '2021-01-01 00:00:00'
              },
              {
                bh: '001002',
                zt: 1,
                mc: '警车',
                cjsj: '2021-01-01 00:00:00'
              },
              {
                bh: '001003',
                zt: 0,
                mc: '安全车',
                cjsj: '2021-01-01 00:00:00'
              },
              {
                bh: '001004',
                zt: 1,
                mc: '对讲机',
                cjsj: '2021-01-01 00:00:00'
              },
              {
                bh: '001005',
                zt: 1,
                mc: '渝警通',
                cjsj: '2021-01-01 00:00:00'
              }
            ]
          }
        })
      }, 500)
    })
  }
}

export const markApi = {
  asideList: (data) => {
    // return axiosIns.post('/bbibmApiDataservice/page', data, {
    //   params: { pageIndex: 1 }
    // });
    return new Promise((resolve) => {
      setTimeout(() => {
        resolve({
          code: '00',
          data: {
            total: 1025,
            records: [
              {
                id: '1',
                bh: 'icon',
                zt: 1,
                mc: '点标记',
                ms: '用于地图标点',
                cjsj: '2021-01-01 00:00:00'
              },
              {
                id: '2',
                bh: 'line',
                zt: 0,
                mc: '线标记',
                ms: '用于地图画线',
                cjsj: '2021-01-01 00:00:00'
              },
              {
                id: '3',
                bh: 'polygon',
                zt: 1,
                mc: '面标记',
                ms: '用于地图画面',
                cjsj: '2021-01-01 00:00:00'
              },
              {
                id: '4',
                bh: 'arrow',
                zt: 1,
                mc: '箭头标记',
                ms: '用于地图标记方向',
                cjsj: '2021-01-01 00:00:00'
              },
            ]
          }
        })
      }, 500)
    })
  },
  tableList: (data) => {
    // return axiosIns.post('/bbibmApiDataservice/page', data, {
    //   params: { pageIndex: 1 }
    // });
    return new Promise((resolve) => {
      setTimeout(() => {
        resolve({
          code: '00',
          data: {
            total: 1025,
            records: [
              {
                bh: '001001',
                zt: 1,
                mc: '卡车',
                icon: 'marker_policeCar.png',
                cjsj: '2021-01-01 00:00:00'
              },
              {
                bh: '001002',
                zt: 1,
                mc: '警车',
                icon: 'marker_policeCar.png',
                cjsj: '2021-01-01 00:00:00'
              },
              {
                bh: '001003',
                zt: 0,
                mc: '救护车',
                icon: 'marker_policeCar.png',
                cjsj: '2021-01-01 00:00:00'
              },
              {
                bh: '001004',
                zt: 1,
                mc: '消防车',
                icon: 'marker_policeCar.png',
                cjsj: '2021-01-01 00:00:00'
              },
              {
                bh: '001005',
                zt: 1,
                mc: '旗帜',
                icon: 'marker_policeCar.png',
                cjsj: '2021-01-01 00:00:00'
              }
            ]
          }
        })
      }, 500)
    })
  }
}
